#include "Session.h"
#include "Users.h"
#include <Time.h>

session_t _currentSession;


void newSession(void)
{
	time_t time = _systime() + _baseTime;
	_currentSession.began = localtime(&time);
	_currentSession.sessionEncoding = EN_ASCII;
	_currentSession.requestedWidth = _currentUser.preferredWidth != 0 ? _currentUser.preferredWidth : 40;
	_currentSession.requestedHeight = _currentUser.preferredHeight != 0 ? _currentUser.preferredHeight : 23;
	_currentSession.pagedSysop = false;
}